home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Symbols
/
s-expansion-series
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-24
|
3KB
|
99 lines
s-expansion-series seed count max-interval steps change symbols
With a range of -6 6
(s-expansion-series nil 12 6 '(1 -1 2 -2) '(1 2 3) '(a -g -i -l))
(s-expansion-series .56 12 6 '(1 -1 2 -2) '(1 2 3) '(a -g -i -l))
Wiht out a range of interval
(s-expansion-series nil 12 nil '(1 -1 2 -2) '(1 2 3) '(a -g -i -l))
(s-expansion-series .56 12 nil '(1 -1 2 -2 3) '(1 2 3) '(a -g -i -l))
(s-expansion-series .56 200 13 '(1 -1 2 -2 3) '(1 2 3) '(a -g -i -l))
;;; -----------------------------------------------------------------------------
;;;
;;; Copyright © 1997 MRAC
;;; Author: Janusz Podrazik
;;; Created: 1997/09/17
;;; Example: s-expansion
;;;
;;; -----------------------------------------------------------------------------
(setq seed (g-seed .24763 24))
(setq sym-par1
(flatten
(s-expansion-series (1~ seed) 200 9
'(1 -1 2 -2) '(1 2 3) '(a g j d))))
(setq sym-par2
(flatten
(s-expansion-series (2~ seed) 200 9
'(-1 1 -2 2) '(1 2 3) '(a2 c3 d#3 f#3))))
(setq length (gen-repeat (length sym-par1) '(1/32)))
(setq velocity1
(cfunction
(vector-resynthesize
4
(gen-noise-white
(length sym-par1) 1 (1~ seed)) nil t)
(g-integer 40 60)))
(setq velocity2
(cfunction
(vector-resynthesize
4
(gen-noise-white
(length sym-par2) 1 (2~ seed)) nil t)
(g-integer 40 60)))
(def-symbol
p1 sym-par1
p2 sym-par2
p3 sym-par1
p4 sym-par2)
(def-length
p1 '1/32
p2 '1/32
p3 '(1/16 1/16 1/32 1/32 1/16) p4 '1/16)
(def-velocity
p1 velocity1
p2 velocity2
p3 velocity1
p4 velocity2)
(def-channel
p1 k2000i-1
p2 k2000ii-1
p3 k2000ii-1
p4 k2000ii-1)
(def-program k2000p
p1 '(stereo-grand)
p2 '(stereo-grand)
p3 '(stereo-grand)
p4 '(stereo-grand))
(setq tonality
(activate-tonality (diminished2 c 5)
(augmented2 e 5)
(ionian d 5)
(augmented2 e 5)
(mixolydian f 5)))
(def-tempo 64)
(compile-song-p
"ccl;output:" 1/4 "s-expansion.midi"
; bars 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
; !---!---!---!---!---!---!---!---!---!---!---!---!---!---!---!---!
scale tonality " . . . . . . . . . . . . "
p1 scale "----------------------------------------------------------------"
p2 scale "-- ---- --- ------ -----"
p3 scale " ------ ------- --- ---- -- "
p4 scale " ----- ----- ----- ------- "
)